{include file="public/header.php"}



      <!-- Jumbotron -->
      
    <div class="row">
      <div>
        <h2>欢迎会员来到吐槽区! </h2>
        <a href="../chengfa/logout.php">注销</a>
        <a href="../chengfa/lest.php">登录</a>
        <a href="../chengfa/register.php">注册</a>
        {foreach from=$res item=v }
        <div class="col-lg-4">
          <h2>{$v['title']}</h2>
            <p class="text-danger">{$v['content']}</p>
            <p>{$v['author']}</p>
            <span>{date('Y-m-d H:i:s',$v['addtime'])}</span>
            <p>
              <a class="btn btn-primary" href="index.php?m=home&c=Index&a=update&id={$v['id']}" role="button">修改</a>
              <a class="btn btn-primary" href="index.php?m=home&c=Index&a=delete&id={$v['id']}" role="button">删除</a>
            </p>
        </div>
        {/foreach}
      </div>
    </div>

 <footer class="footer">
        <p>我要吐槽，吐槽大会</p>
      </footer>
    <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
</div>
</body>
</html>